package com.zhenwei.zscm.model.vo.user;

import com.zhenwei.zscm.common.annotations.Insert;
import com.zhenwei.zscm.common.annotations.Update;
import com.zhenwei.zscm.common.annotations.Update2;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
public class UserVO {
    @NotEmpty(message = "用户ID不能为空", groups = { Update.class, Update2.class })
    private String guid;
    @NotEmpty(message = "用户姓名不能为空", groups = Insert.class)
    private String realName;
    @NotEmpty(message = "登录名不能为空", groups = { Insert.class, Update.class })
    private String userName;
    @NotEmpty(message = "用户密码不能为空", groups = { Insert.class, Update2.class })
    private String password;
    @NotEmpty(message = "用户角色不能为空", groups = { Insert.class, Update.class })
    private String role;
    @NotEmpty(message = "用户角色不能为空", groups = { Insert.class, Update.class })
    private String roleName;
}
